package com.gsezone.s12;

import java.util.ArrayList;
import java.util.List;

import com.gsezone.s12.model.User;

public class MyList {

	public static void main(String[] args) {
		
		List<User> users = new ArrayList<>();

		users.add(new User(1l, "Grzegorz"));
		users.add(new User(2l, "Marek"));
		users.add(new User(3l, "Karol"));
		
		System.out.println(users);

		users.add(new User(4l, "Lukasz"));
		
		System.out.println(users);

		User lukasz = users.get(3);
		
		System.out.println(lukasz.getName());
	}
	
}
